import common from '@/utils/network/common'

const path = {
  getUserListPath: 'user/getUserList',
  getAllRealms: 'orup/realm/getAllRealms'
}
const userService = {};

(function (service) {
  service.getUserList = function (orgId) {
    return common.get(path.getUserListPath, { orgId: orgId })
  }

  service.listAllOrgTree = function (realmGuid) {
    return common.get(path.listAllOrgTree, { realmGuid: realmGuid })
  }

  service.getIssuingOrganizationMap = function (params) {
    return common.post(path.getIssuingOrganizationMap, params, null)
  }
})(userService)

export default userService
